function q_exit=is_gameover(G)
% is_gameover: Test whether the game is to be over
%
% SYNTAX:
%   q_exit = is_gameover(G)
%   Return 1 if the game G satisfies the condition to terminate the game or 0 otherwise.
%   This routine will call user function G.is_gameover to check whether the game is over.
%   User function G.is_gameove should follow the calling syntax of default def_is_gameover.

%   Author: Hongbin Ma
%   Last updated: 2009-6-2 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

q_exit=feval(G.is_gameover_func,G);

